package com.wlyy.his.ze.api;

import com.wlyy.his.ze.base.ZeApiException;
import com.wlyy.his.ze.bean.request.*;
import com.wlyy.his.ze.bean.response.*;
import com.wlyy.his.ze.hepler.ZeApiUtils;
import org.springframework.http.HttpMethod;

/**
 * @author: 10097
 * @date: 2021/8/27 17:13
 * @description:
 */
public class ZeGuoJiApiService {

    /**
     * 获取人员信息（CY90001）
     *
     * @param request 请求参数
     * @return 结果
     * @throws ZeApiException 异常
     */
    public static RENYUANXX_OUT patientInfoCY90001(RENYUANXX_IN_request request) throws ZeApiException {
        return ZeApiUtils.exec(request, new RENYUANXX_OUT(), HttpMethod.POST, "CY90001");
    }

    /**
     * 挂号科室信息查询(CY90004)
     *
     * @param request 请求参数
     * @return 返回
     * @throws ZeApiException 异常
     */
    public static GUAHAOKSXX_OUT guaHaoDeptCY90004(GUAHAOKSXX_IN_request request) throws ZeApiException {
        return ZeApiUtils.exec(request, new GUAHAOKSXX_OUT(), HttpMethod.POST, "CY90004");
    }

    /**
     * 挂号医生信息查询(CY90005)
     *
     * @param request 请求参数
     * @return 返回
     * @throws ZeApiException 异常
     */
    public static GUAHAOYSXX_OUT guahaoDocotorCY90005(GUAHAOYSXX_IN_request request) throws ZeApiException {
        return ZeApiUtils.exec(request, new GUAHAOYSXX_OUT(), HttpMethod.POST, "CY90005");
    }


    /**
     * 挂号号源信息查询(CY90006)
     *
     * @param request 请求参数
     * @return 返回
     * @throws ZeApiException 异常
     */
    public static GUAHAOHYXX_OUT guahaoSourceCY90006(GUAHAOHYXX_IN_request request) throws ZeApiException {
        return ZeApiUtils.exec(request, new GUAHAOHYXX_OUT(), HttpMethod.POST, "CY90006");
    }

    /**
     * 挂号预约(CY90007)
     *
     * @param request 请求参数
     * @return 返回
     * @throws ZeApiException 异常
     */
    public static GUAHAOYY_OUT guahaoReserveCY90007(GUAHAOYY_IN_request request) throws ZeApiException {
        return ZeApiUtils.exec(request, new GUAHAOYY_OUT(), HttpMethod.POST, "CY90007");
    }

    /**
     * 挂号信息查询(CY90008)
     *
     * @param request 请求参数
     * @return 返回
     * @throws ZeApiException 异常
     */
    public static GUAHAOXXCX_OUT guahaoInfoSearchCY90008(GUAHAOXXCX_IN_request request) throws ZeApiException {
        return ZeApiUtils.exec(request, new GUAHAOXXCX_OUT(), HttpMethod.POST, "CY90008");
    }


    /**
     * 医院排班信息查询(CY90009)
     *
     * @param request 请求参数
     * @return 返回
     * @throws ZeApiException 异常
     */
    public static YIYUANPBXX_OUT yiyuanRosterCY90009(YIYUANPBXX_IN_request request) throws ZeApiException {
        return ZeApiUtils.exec(request, new YIYUANPBXX_OUT(), HttpMethod.POST, "CY90009");
    }

    /**
     * 医院停诊(CY90010)
     *
     * @param request 请求参数
     * @return 返回
     * @throws ZeApiException 异常
     */
    public static PAIBANTZXX_OUT yiyuantzCY90010(PAIBANTZXX_IN_request request) {
        return ZeApiUtils.exec(request, new PAIBANTZXX_OUT(), HttpMethod.POST, "CY90010");
    }

    /**
     * 取消挂号预约(CY90013)
     *
     * @param request 请求参数
     * @return 返回
     * @throws ZeApiException 异常
     */
    public static GUAHAOYYTH_OUT guahaoCancelCY90013(GUAHAOYYTH_IN_request request) {
        return ZeApiUtils.exec(request, new GUAHAOYYTH_OUT(), HttpMethod.POST, "CY90013");
    }


    /**
     * 人员注册(CY90015)
     *
     * @param request 请求参数
     * @return 返回
     * @throws ZeApiException 异常
     */
    public static RENYUANMXZC_OUT yiyuanZCCY90015(RENYUANZC_IN_request request) throws ZeApiException {
        return ZeApiUtils.exec(request, new RENYUANMXZC_OUT(), HttpMethod.POST, "CY90015");
    }

}
